# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-evdev
pkgver=1.7.0
pkgrel=1
pkgdesc="Python bindings to the kernel's generic input event interface (evdev) and to uinput"
url="https://github.com/gvalkov/python-evdev"
arch="all"
license="BSD-3-Clause"
depends="libevdev python3"
makedepends="
	linux-headers
	py3-setuptools
	python3-dev
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/gvalkov/python-evdev/archive/v$pkgver/py3-evdev-$pkgver.tar.gz"
builddir="$srcdir/python-evdev-$pkgver"
options="!check"  # tests broken: https://github.com/gvalkov/python-evdev/issues/153

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
79cb8e92f5698b120ba0c4b2603a18907097d130e0128cbad68eb95b50935b6aeadd1e844d4c76909c965719cb5b067e37d0921748be3c7c2493acb58c153521  py3-evdev-1.7.0.tar.gz
"
